<?php

class MUser extends DataMapper {

    public $table = 'users';
    public $has_many = array(
        'function' => array(
            'class' => 'mfunction',
            'other_field' => 'user'
        ),
        'controller' => array(
            'class' => 'mcontroller',
            'other_field' => 'user'
        ),
        'server' => array(
            'class' => 'mserver',
            'other_field' => 'user'
        )
    );
    public $has_one = array(
        'group' => array(
            'class' => 'mgroup',
            'other_field' => 'user'
        )
    );

    public function __construct($id = null) {
        parent::__construct($id);
    }
}

/* End of file mfunction.php */
/* Location: ./application/models/mfunction.php */